<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
  <html>
  <body>
  <h1>
      <span style="background-color:#FFFF00"> checkbox标签例子</span>
   </h1>
   <b>爱好</b>
   <s:form action="checkbox.action" theme="simple">
   <s:checkbox name="hobbies" fieldValue="阅读xx">阅读</s:checkbox>
   <s:checkbox name="hobbies" fieldValue="篮球">篮球</s:checkbox>
   <s:checkbox name="hobbies" fieldValue="绘画">绘画</s:checkbox>
   <s:checkbox name="hobbies" fieldValue="旅游">旅游</s:checkbox>
   <s:checkbox name="hobbies" fieldValue="书法" value="true">书法</s:checkbox>
    <s:submit value="提交"/>
    </s:form>
</body>
</html>
